package com.ghck.server.model;

import java.util.Date;
/**
 * 科室  <br>
 * dict_department <br>
 * v1.0 2016-05-16
 */
 public class DepartmentDict extends BaseModel implements Comparable<DepartmentDict>{
	
	private static final long serialVersionUID = 1L;
	
 	
 	//id
	private Integer id;

 	//科室名称
 	//name
	private String name;

 	//父ID
 	//parent_id
	private Integer parentId;

 	//是否在用,0：未使用,1：正在使用
 	//in_used
	private Integer inUsed;

 	
 	//last_modify_time
	private Date lastModifyTime;

 	
 	//create_time
	private Date createTime;

	
	/**
	*
 	*id
 	*/
	public Integer getId() {
		return id;
	}
	
	/**
	*
 	*id
 	*/
	public void setId(Integer id) {
		this.id = id;
	}
	
	/**
	*科室名称
 	*name
 	*/
	public String getName() {
		return name;
	}
	
	/**
	*科室名称
 	*name
 	*/
	public void setName(String name) {
		this.name = name;
	}
	
	/**
	*父ID
 	*parent_id
 	*/
	public Integer getParentId() {
		return parentId;
	}
	
	/**
	*父ID
 	*parent_id
 	*/
	public void setParentId(Integer parentId) {
		this.parentId = parentId;
	}
	
	/**
	*是否在用,0：未使用,1：正在使用
 	*in_used
 	*/
	public Integer getInUsed() {
		return inUsed;
	}
	
	/**
	*是否在用,0：未使用,1：正在使用
 	*in_used
 	*/
	public void setInUsed(Integer inUsed) {
		this.inUsed = inUsed;
	}
	
	/**
	*
 	*last_modify_time
 	*/
	public Date getLastModifyTime() {
		return lastModifyTime;
	}
	
	/**
	*
 	*last_modify_time
 	*/
	public void setLastModifyTime(Date lastModifyTime) {
		this.lastModifyTime = lastModifyTime;
	}
	
	/**
	*
 	*create_time
 	*/
	public Date getCreateTime() {
		return createTime;
	}
	
	/**
	*
 	*create_time
 	*/
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	
	@Override
	public int compareTo(DepartmentDict o) {
		if(o!=null && o.id!=null){
			return o.id.compareTo(id);
		}
		return 0;
	}
	
	@Override
	public void dealWith(){
		super.dealWith();
		
	}
}	